package com.zc.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zc.mapper.ExamsMapper;
import com.zc.pojo.Exams;
import com.zc.service.ExamsService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class ExamsServiceImpl extends ServiceImpl<ExamsMapper, Exams> implements ExamsService {
    @Resource
    private ExamsMapper examsMapper;

    @Override
    public Exams getByName(String examName) {
        LambdaQueryWrapper<Exams> lqw = new LambdaQueryWrapper<>();
        lqw.eq(Exams::getExamName, examName);
        return baseMapper.selectOne(lqw);
    }

}

